package com.gitee.wsl.ext.number

fun Byte.toUByte(): Int {
    return this.toInt().and(0xFF)
}

fun Short.toUShort(): Int {
    return this.toInt().and(0xFFFF)
}

fun Int.toULong(): Long {
    return this.toLong().and(0xFFFFFFFF)
}